package org.mall.modules.cash.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mall.modules.cash.entity.CashDetailInfo;
import org.mall.modules.cash.entity.CashInfoLog;
import org.mall.modules.pojo.cash.CashInfoLogQueryDTO;

import java.util.Date;
import java.util.List;

/**
 * @Description: 提现信息记录表
 * @Author: jeecg-boot
 * @Date:   2019-12-31
 * @Version: V1.0
 */
@Mapper
public interface CashInfoLogMapper extends BaseMapper<CashInfoLog> {

    void insertBatch(List<CashDetailInfo> cashDetailInfos);


    IPage<CashInfoLog> pageList(Page<CashInfoLog> page, @Param(Constants.WRAPPER) QueryWrapper<CashInfoLog> queryWrapper);

    IPage<CashInfoLog> pageListByCondition(Page page, @Param("sellerId")String sellerId, @Param("createStartTime")Date createStartTime,@Param("createEndTime")Date createEndTime,
    @Param("result") Integer result, @Param("id")  Long id
    );

    CashInfoLog getDetailById(@Param("id") Long infoId);
}
